export enum State {
    Invalid = -1, // 开始没有发起连接的时候
    Disconnected = 0, // 断开连接
    Connecting = 1, // 正在连接
    Connected = 2, // 已经连接;
};

export let WSDisconnectEvent = "WSDisconnect";
export let WSConnectingEvent = "WSConnecting";
export let WSConnectedEvent = "WSConnected";
export let WSRecvDataEvent = "WSRecvDataEvent";

//域名kytoa.cn
// 服务器的连接地址 "ws://192.168.0.112:8000/ag" 线上 "ws://123.60.58.84:8001/ag"
export let NetConfig = {
    //我的nodejs 本地服务
    ip: "192.168.0.184",
    port: 6083,

    //刘洪森的服务
    // ip: "192.168.0.186",
    // port: 8001,

    domain:"kytoa.cn:8443/dt",
    urlDev: "ws://192.168.0.156:8001/dt",
    // urlDev: "ws://127.0.0.1:6086", //自己的服务器
    urlWx: "wss://kytoa.cn:8443/ag",
    httpDev:"http://192.168.0.112:8001/vfb/user-login/loginAg?code=",
    httpWx:"https://kytoa.cn:8443/vfb/user-login/loginAg?code=",

    wxAppid:'wx98c71f5b29909cad',
} 